import os,json
class SchemaHandler:

    def __init__(self):
        self.schema_dir = os.path.join(os.path.dirname(__file__),'../schemas')

    def get_json_schema(self,filename):
        filepath = os.path.join(self.schema_dir,filename)
        return json.load(open(filepath))


if __name__ == '__main__':
    sc = SchemaHandler()
    print( sc.get_json_schema('oa_checkin.json'))